package com.qo.qsdk.ui.base.floater.animation;

import android.view.animation.Animation;

public class AnimationListenerWrapper implements Animation.AnimationListener {

    private AnimationNotifier<Animation> mAnimationNotifier;

    public AnimationListenerWrapper(AnimationNotifier<Animation> animation_notifier) {
        mAnimationNotifier = animation_notifier;
    }

    @Override
    public void onAnimationStart(Animation animation) {
        if (mAnimationNotifier != null) {
            mAnimationNotifier.onAnimation(AnimationNotifier.AnimationState.START, animation);
        }
    }

    @Override
    public void onAnimationEnd(Animation animation) {
        if (mAnimationNotifier != null) {
            mAnimationNotifier.onAnimation(AnimationNotifier.AnimationState.END, animation);
        }

    }

    @Override
    public void onAnimationRepeat(Animation animation) {
        if (mAnimationNotifier != null) {
        }
    }
}
